package com.rongc.client.freight.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  按用户更新未读数据接口
* */

public class UpdateReadApi extends AbsRequest<UpdateReadApi.UpdateReadParams, NullResult> {

    public UpdateReadApi(UpdateReadParams feedbackParams, Listener<NullResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getupdateReadAllUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class UpdateReadParams extends BaseParams {

        public UpdateReadParams() {
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }


}
